/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.sevenpriciples.plk.plk.violation.impl;

/**
 *
 * @author Administrator
 */
public class CalculateTotalPrice {
    private int quantity;
    
    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }
    
    public double totalPrice(){
        return this.quantity * this.getProductPrice().getPrice();
    }
    
    public ProductImpl getProductPrice(){
        return new ProductImpl();
    }
}
